import os

USERNAME = 'root'
PASSWORD = '02200059'
HOST = '127.0.0.1'
PORT = '3306'
DATABASE = 'booking'
SECRET_KEY = os.urandom(24)


#mysql 不会认识utf-8,而需要直接写成utf8
DB_URI='mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME,PASSWORD,HOST,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI =DB_URI

# 邮箱配置
MAIL_SERVER = "smtp.qq.com"
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = "3496483785@qq.com"
MAIL_PASSWORD = "ubgmoazlbtzbdaae"
MAIL_DEFAULT_SENDER = "3496483785@qq.com"

